load("//tools:defaults.bzl", "jasmine_test", "ts_project")

ts_project(
    name = "test_lib",
    testonly = True,
    srcs = glob(["*.ts"]),
    deps = [
        "//:node_modules/@angular-devkit/core",
        "//:node_modules/@angular-devkit/schematics",
        "//packages/core/schematics/utils",
        "//packages/core/schematics/utils/tsurge",
    ],
)

jasmine_test(
    name = "test",
    timeout = "moderate",
    data = [
        ":test_lib",
        "//:node_modules/@angular/compiler",
        "//:node_modules/@angular/compiler-cli",
        "//packages/core/schematics:bundles",
        "//packages/core/schematics:schematics_jsons",
        "//packages/core/schematics/migrations/common-to-standalone-migration:static_files",
        "//packages/core/schematics/migrations/control-flow-migration:static_files",
        "//packages/core/schematics/migrations/ngclass-to-class-migration:static_files",
        "//packages/core/schematics/migrations/ngstyle-to-style-migration:static_files",
        "//packages/core/schematics/migrations/router-testing-module-migration:static_files",
        "//packages/core/schematics/ng-generate/cleanup-unused-imports:static_files",
        "//packages/core/schematics/ng-generate/inject-migration:static_files",
        "//packages/core/schematics/ng-generate/output-migration:static_files",
        "//packages/core/schematics/ng-generate/route-lazy-loading:static_files",
        "//packages/core/schematics/ng-generate/self-closing-tags-migration:static_files",
        "//packages/core/schematics/ng-generate/signal-input-migration:static_files",
        "//packages/core/schematics/ng-generate/signal-queries-migration:static_files",
        "//packages/core/schematics/ng-generate/signals:static_files",
        "//packages/core/schematics/ng-generate/standalone-migration:static_files",
    ],
    shard_count = 16,
)
